<template>
  <div class="data-empty">
    <!-- <p :style="{'padding': padding}">{{msg}}</p> -->
    <img :src="img" alt="">
    <div class="nodata">暂无数据</div>
  </div>
</template>

<script>
import imgUrl from '@/assets/images/armyScreen/暂无数据@2x.png'
export default {
  name: 'DataEmpty',
  props: {
    // ICON大小，默认为12rem
    size: {
      type: Number,
      default: () => 12
    },
    img: {
      type: String,
      default: imgUrl
    }
  },
  data () {
    return {
    }
  }
}
</script>
<style lang="scss" scoped>
.data-empty {
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  width: 100%;height: 100%;
  align-items: center; justify-content: center;
  > img {
    width: 119px;
    height: 78px;
  }
  .nodata{
    width: 56px;
    height: 20px;
    opacity: 0.3;
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #FFFFFF;
    letter-spacing: 0;
    font-weight: 400;
    margin-top: 16px;
  }
}
</style>
